package com.chiang.security.springmvc.config;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.FilterType;
import org.springframework.stereotype.Controller;

/**
 * @author : 765819328@qq.com
 * @version :
 * @date : Created in 2021/8/1 11:04
 * @description: spring-security配置类 相当于 applicationContext.xml
 */
@Configuration
@ComponentScan(basePackages = "com.chiang.security.springmvc",
        excludeFilters = {@ComponentScan.Filter(type = FilterType.ANNOTATION, value = Controller.class)})
public class ApplicationConfig {
    //在此配置除了Controller的其他bean，比如，数据库连接池，事务管理器，业务bean等。
}
